<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Detail: log/service_logger.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Detail
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_9381a7bbd03577d6d8720c7f35c94ffa.html">log</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a>  </div>
  <div class="headertitle">
<div class="title">service_logger.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>服务日志  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;cstdarg&gt;</code><br />
<code>#include &lt;cstdio&gt;</code><br />
<code>#include &quot;box/service_context.hh&quot;</code><br />
<code>#include &quot;box/service_logger.hh&quot;</code><br />
<code>#include &quot;klogger/klogger/interface/logger.h&quot;</code><br />
<code>#include &quot;<a class="el" href="service__tool_8hpp_source.html">service_tool.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="singleton_8hpp_source.html">singleton.hpp</a>&quot;</code><br />
<code>#include &lt;string&gt;</code><br />
</div>
<p><a href="service__logger_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1common_1_1service__logger.html">guild_service::common::service_logger</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ab9ded45a3553d6bf0bab80424c0dfbaf"><td class="memItemLeft" align="right" valign="top"><a id="ab9ded45a3553d6bf0bab80424c0dfbaf"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ServiceLoggerSingleton</b>(...)&#160;&#160;&#160;  (*common::singleton&lt;common::service_logger&gt;::instance(__VA_ARGS__))</td></tr>
<tr class="separator:ab9ded45a3553d6bf0bab80424c0dfbaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fccb4fc71e44089a1b1a77fc76c0b68"><td class="memItemLeft" align="right" valign="top"><a id="a5fccb4fc71e44089a1b1a77fc76c0b68"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>__FILENAME__</b>&#160;&#160;&#160;(strrchr(&quot;/&quot; __FILE__, '/') + 1)</td></tr>
<tr class="separator:a5fccb4fc71e44089a1b1a77fc76c0b68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd0b0523397fb05f0ed46fc217fb630f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_DEBUG</b>(format, ...)</td></tr>
<tr class="separator:abd0b0523397fb05f0ed46fc217fb630f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89681da4efde0b54dc7f2839665082c8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_INFO</b>(format, ...)</td></tr>
<tr class="separator:a89681da4efde0b54dc7f2839665082c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31e7ff3be0d7ddbd843b3335b534bd03"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_WARN</b>(format, ...)</td></tr>
<tr class="separator:a31e7ff3be0d7ddbd843b3335b534bd03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab384d85dbc51b9d698d67202dbd4b9b3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_EXCEPT</b>(format, ...)</td></tr>
<tr class="separator:ab384d85dbc51b9d698d67202dbd4b9b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2aadc4c095b85afd246542d29967ffc6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_FAIL</b>(format, ...)</td></tr>
<tr class="separator:a2aadc4c095b85afd246542d29967ffc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a259d62ffbd4525521220c45b05c1ec26"><td class="memItemLeft" align="right" valign="top"><a id="a259d62ffbd4525521220c45b05c1ec26"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_BEGIN_S</b>&#160;&#160;&#160;  &quot; - &quot; &lt;&lt; __func__ &lt;&lt; &quot; &quot; &lt;&lt; __FILENAME__ &lt;&lt; &quot;:&quot; &lt;&lt; __LINE__ &lt;&lt; &quot; &quot;</td></tr>
<tr class="separator:a259d62ffbd4525521220c45b05c1ec26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b58a6e7c97c1f4ca2fddf21b5e47251"><td class="memItemLeft" align="right" valign="top"><a id="a1b58a6e7c97c1f4ca2fddf21b5e47251"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_DEBUG_S</b>&#160;&#160;&#160;guild_service::log_debug() &lt;&lt; LOG_BEGIN_S</td></tr>
<tr class="separator:a1b58a6e7c97c1f4ca2fddf21b5e47251"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28d4d51a64e29b87c59c10f86615f4bf"><td class="memItemLeft" align="right" valign="top"><a id="a28d4d51a64e29b87c59c10f86615f4bf"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_INFO_S</b>&#160;&#160;&#160;guild_service::log_info() &lt;&lt; LOG_BEGIN_S</td></tr>
<tr class="separator:a28d4d51a64e29b87c59c10f86615f4bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9b694972a4957493602ba1e7d3c5925"><td class="memItemLeft" align="right" valign="top"><a id="ad9b694972a4957493602ba1e7d3c5925"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_WARN_S</b>&#160;&#160;&#160;guild_service::log_warn() &lt;&lt; LOG_BEGIN_S</td></tr>
<tr class="separator:ad9b694972a4957493602ba1e7d3c5925"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84b8458da6b5afc625fe1affc3aebf59"><td class="memItemLeft" align="right" valign="top"><a id="a84b8458da6b5afc625fe1affc3aebf59"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_EXCEPT_S</b>&#160;&#160;&#160;guild_service::log_except() &lt;&lt; LOG_BEGIN_S</td></tr>
<tr class="separator:a84b8458da6b5afc625fe1affc3aebf59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af01efb441cce315628265a4fe8d7365b"><td class="memItemLeft" align="right" valign="top"><a id="af01efb441cce315628265a4fe8d7365b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_FAIL_S</b>&#160;&#160;&#160;guild_service::log_fail() &lt;&lt; LOG_BEGIN_S</td></tr>
<tr class="separator:af01efb441cce315628265a4fe8d7365b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11b0acfdc46e755da2e8e7d406d60144"><td class="memItemLeft" align="right" valign="top"><a id="a11b0acfdc46e755da2e8e7d406d60144"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_END_S</b>&#160;&#160;&#160;kratos::service::EndLog()</td></tr>
<tr class="separator:a11b0acfdc46e755da2e8e7d406d60144"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:acbfd667ce6cf8f0af436296a7740169b"><td class="memItemLeft" align="right" valign="top"><a id="acbfd667ce6cf8f0af436296a7740169b"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="service__logger_8hpp.html#acbfd667ce6cf8f0af436296a7740169b">guild_service::logger_level_type</a> = guild_service::common::service_logger::logger_level_type</td></tr>
<tr class="memdesc:acbfd667ce6cf8f0af436296a7740169b"><td class="mdescLeft">&#160;</td><td class="mdescRight">日志等级类型 <br /></td></tr>
<tr class="separator:acbfd667ce6cf8f0af436296a7740169b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>服务日志 </p>
<dl class="section date"><dt>Date</dt><dd>2021/04/15 20:16</dd></dl>
<dl class="section author"><dt>Author</dt><dd>harrybao (<a href="#" onclick="location.href='mai'+'lto:'+'har'+'ry'+'bao'+'@1'+'23u'+'.c'+'om'; return false;">harry<span style="display: none;">.nosp@m.</span>bao@<span style="display: none;">.nosp@m.</span>123u.<span style="display: none;">.nosp@m.</span>com</a>)</dd></dl>
<dl class="section version"><dt>Version</dt><dd>v1.0.0</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright © 2021 All Rights Reserved 上海欢乐互娱网络科技有限公司</dd></dl>
<dl class="section user"><dt>history:</dt><dd><table class="doxtable">
<tr>
<th>Date </th><th>Version </th><th>Author </th><th>Description </th></tr>
<tr>
<td>2021/04/15 20:16 </td><td>1.0.0 </td><td>harrybao </td><td>创建初始版本 </td></tr>
</table>
</dd></dl>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="abd0b0523397fb05f0ed46fc217fb630f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd0b0523397fb05f0ed46fc217fb630f">&#9670;&nbsp;</a></span>LOG_DEBUG</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_DEBUG</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">format, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">  guild_service::log_it(guild_service::logger_level_type::DIAGNOSE, \</div>
<div class="line">                        <span class="stringliteral">&quot; &quot;</span> format <span class="stringliteral">&quot; - %s(%s:%d) &quot;</span>, ##__VA_ARGS__,  \</div>
<div class="line">                        __FUNCTION__, __FILENAME__, __LINE__)</div>
</div><!-- fragment -->
</div>
</div>
<a id="ab384d85dbc51b9d698d67202dbd4b9b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab384d85dbc51b9d698d67202dbd4b9b3">&#9670;&nbsp;</a></span>LOG_EXCEPT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_EXCEPT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">format, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">  guild_service::log_it(guild_service::logger_level_type::EXCEPTION, \</div>
<div class="line">                        <span class="stringliteral">&quot; &quot;</span> format <span class="stringliteral">&quot; - %s(%s:%d) &quot;</span>, ##__VA_ARGS__,   \</div>
<div class="line">                        __FUNCTION__, __FILENAME__, __LINE__)</div>
</div><!-- fragment -->
</div>
</div>
<a id="a2aadc4c095b85afd246542d29967ffc6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2aadc4c095b85afd246542d29967ffc6">&#9670;&nbsp;</a></span>LOG_FAIL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_FAIL</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">format, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">  guild_service::log_it(guild_service::logger_level_type::FAILURE, \</div>
<div class="line">                        <span class="stringliteral">&quot; &quot;</span> format <span class="stringliteral">&quot; - %s(%s:%d) &quot;</span>, ##__VA_ARGS__, \</div>
<div class="line">                        __FUNCTION__, __FILENAME__, __LINE__)</div>
</div><!-- fragment -->
</div>
</div>
<a id="a89681da4efde0b54dc7f2839665082c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89681da4efde0b54dc7f2839665082c8">&#9670;&nbsp;</a></span>LOG_INFO</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_INFO</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">format, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">  guild_service::log_it(guild_service::logger_level_type::INFORMATION, \</div>
<div class="line">                        <span class="stringliteral">&quot; &quot;</span> format <span class="stringliteral">&quot; - %s(%s:%d) &quot;</span>, ##__VA_ARGS__,     \</div>
<div class="line">                        __FUNCTION__, __FILENAME__, __LINE__)</div>
</div><!-- fragment -->
</div>
</div>
<a id="a31e7ff3be0d7ddbd843b3335b534bd03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31e7ff3be0d7ddbd843b3335b534bd03">&#9670;&nbsp;</a></span>LOG_WARN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_WARN</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">format, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">  guild_service::log_it(guild_service::logger_level_type::WARNING, \</div>
<div class="line">                        <span class="stringliteral">&quot; &quot;</span> format <span class="stringliteral">&quot; - %s(%s:%d) &quot;</span>, ##__VA_ARGS__, \</div>
<div class="line">                        __FUNCTION__, __FILENAME__, __LINE__)</div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
